<!DOCTYPE html>
<html lang="ar">
<head>
	<?php $this->load->helper('url');?>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    
	<!--<link href='<?php echo base_url("assets/css/webfonts/amiri/amiri.css")?>"' rel="stylesheet" type="text/css" />-->
	<link href="<?php echo base_url("assets/css/main_menu_style.css")?>" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<?php echo base_url('assets/js/jquery-1.11.0.min.js');?>" ></script>
	
	
	<meta charset="utf-8">
	<title>مرحبا بكم في برنامج تسيير الإقامة الجامعية 3000 سرير</title>
	
</head>

<form action="test_ajax_ctr/test" method= "post" id="formMsg">
	    <input type="text" name="login" id="login" placeholder="login"/>
	    <input type="text" name="msg" id="msg" placeholder="message"/>
	    <input type="submit" value="send" id="send"/>
		 <input type="submit" />
	</form><br/>
	<div id="zoneTexte" style="background-color: yellowgreen">
	</div>
	
<script>
$(document).ready( function() {
	$('#send').click(function(){
	//	    $("#formMsg").submit(function () {
	            $.post("test_ajax_ctr/test",$("#formMsg").serialize(),function(texte){
	                $("div#zoneTexte").append(texte);
	            });
	            return false; // ne change pas de page
	    });
	});
</script>
</html>